home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypertxt / msdos / hydos10 / shift < prev    next >
Text File  |  1991-04-23  |  830b  |  22 lines

  1.                                    SHIFT
  2.          Allows use of more than 10 parameters within a batch file.
  3.  
  4. COMMAND TYPE: Internal (batch)          VERSION: 2.0 and up
  5.  
  6. USE: SHIFT
  7.  
  8. When more than one replaceable parameter is used, SHIFT will shift the
  9. parameter list one position to the left.
  10.  
  11. EXAMPLE: Assume that there is a batch file called COPYFILE.BAT that
  12. copies files from one drive to another. Also assume that it uses 4
  13. replaceable parameters, %0, %1, %2, and %3. If you invoke COPYFILE.BAT
  14. using the replaceable parameters:
  15.  
  16.      COPYFILE *.DAT *.EXE *.COM *.BAT
  17.  
  18. then %0 equals *.DAT, %1 equals *.EXE, %2 equals *.COM, and %3 equals
  19. *.BAT.  After a SHIFT command is issued, the list of parameters will shift
  20. one to the left and, %0 will equal *.EXE, %1 will equal *.COM, and %2 will
  21. equal *.BAT.
  22.